package j20251011;

import java.io.File;

public class Demo2 {
    public static void main(String[] args) {
        File file = new File("j20251117/test.txt");
        File newFile = new File("./src/j20251011/test.txt");
        file.renameTo(newFile);
        System.out.println(file.exists());
        System.out.println(newFile.exists());
    }
}
